package com.example.demo.common;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2023-06-11
 * Time: 10:00
 */
public class RemoveKeyWords {

    private static final String KEYWORDS_TO_REMOVE = "###,##,#,###,###,###,###,###,###,###,###,###,###,###";

    public static String removeKeywords(String content) {

        Pattern pattern = Pattern.compile("[" + KEYWORDS_TO_REMOVE + "]+");

        Matcher matcher = pattern.matcher(content);

        return matcher.replaceAll("").trim();

    }
}
